home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
mus
/
midi
/
MusicXRexxMacs.lha
/
macros
/
FLIP.mxe
< prev
next >
Wrap
Text File
|
1997-02-04
|
742b
|
51 lines
/* Flip notes around an axis*/
/* © Dick Doyle */
options results
MXSLIDER "Axis:,0,127,60"
MXRADIO "Selected Notes,All Notes"
MXSLIDER "Channel Select,1,16,1"
MXREQUEST "FLIP,Flip"
if result == 0 then exit
MXPOINTER "sleepy"
MXVALUE 1
rotor = result
MXVALUE 3
chanum = result
MXVALUE 2
if result == 0 then BEGINSCAN 'selected'
else BEGINSCAN 'all'
if result ~= 0 then do forever
NEXTEVENT
if result == 0 then break
if EVENT.CHANNEL == chanum - 1 then
if EVENT.TYPE == 'NOTE' then
if event.num ~= rotor then do
newval = rotor - (event.num - rotor)
EVENT.NUM = newval
REPLEVENT
end
end
ENDSCAN
MXPOINTER "normal"
exit